package com.haircut.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.haircut.mapper.HaircutUserRecharge;
import com.baomidou.mybatisplus.extension.service.IService;
import com.haircut.model.dto.UserRechargeDTO;
import com.haircut.model.req.AdminBuyReq;
import com.haircut.model.req.AdminRechargeReq;
import com.haircut.model.req.RechargeReq;

import java.util.List;

/**
* @author Administrator
* @description 针对表【t_haircut_user_recharge(用户充值记录表)】的数据库操作Service
* @createDate 2025-11-01 22:57:36
*/
public interface HaircutUserRechargeService extends IService<HaircutUserRecharge> {

    List<HaircutUserRecharge> getRecharge(Long userId,String phone);

    /**
     * 后台充值
     * @param rechargeReq
     */
    void adminRecharge(AdminRechargeReq rechargeReq);

    Page<UserRechargeDTO> getRechargeAll(RechargeReq req);
}
